package cn.zeng.dto;

import lombok.Data;

import java.util.HashMap;
import java.util.Map;

import static cn.zeng.dto.Color.BLACK;


/**
 * 膳食分析
 *
 * @author zyb
 */
@Data
public class DietaryAnalysis {
    private String level = "121";


    private Integer riceAndPhoto = 123;
    private String riceAndPhotoIntake;
    private String riceAndPhotoColor = BLACK.getName();
    private String riceAndPhotoReference = "212";

    private Integer vegetable = 12;
    private Integer vegetableIntake;
    private String vegetableColor = BLACK.getName();
    private String vegetableReference = "211";

    private Integer fruit = 121;
    private String fruitIntake;
    private String fruitColor = BLACK.getName();
    private String fruitReference = "121";

    private Integer meat = 111;
    private String meatIntake;
    private String meatColor = BLACK.getName();
    private String meatReference = "222";

    private Integer fish = 112;
    private String fishIntake;
    private String fishColor = BLACK.getName();
    private String fishReference = "2112";

    private Integer egg = 211;
    private String eggIntake;
    private String eggColor = BLACK.getName();
    private String eggReference = "2112";

    private Integer milk = 111;
    private String milkIntake;
    private String milkColor = BLACK.getName();
    private String milkReference = "221";

    private Integer soybean = 121;
    private String soybeanIntake;
    private String soybeanColor = BLACK.getName();
    private String soybeanReference = "2111";

    private Integer cookOil = 21;
    private String cookOilColor = BLACK.getName();
    private String cookOilReference = "111";

    private Integer salt = 98;
    private String saltColor = BLACK.getName();
    private String saltReference = "89";

    private Integer drinkWater = 12;
    private String drinkWaterColor = BLACK.getName();
    private String drinkWaterReference = "211";

    private String improve = "121111\t555\t444\t333\3t11111";

    private Integer weight = 211;

    private Double bmi = 12.;
    private String bmiColor = BLACK.getName();
    private String bmiReference = "121";

    /**
     * 收缩压
     */
    private Double systolicBloodPressure = 12.;

    /**
     * 舒张压
     */
    private Double diastolicBloodPressure = 11.;
    private String bloodPressureColor = BLACK.getName();
    private String bloodPressureReference = "21";


    /**
     * 空腹血糖
     */

    private Double fastingPlasmaGlucose = 12.;
    private String fastingPlasmaGlucoseColor = BLACK.getName();
    private String fastingPlasmaGlucoseReference = "112";


    /**
     * 总胆固醇
     */

    private Double totalCholesterol = 12.;
    private String totalCholesterolColor = BLACK.getName();
    private String totalCholesterolReference = "211";
    /**
     * 甘油三酯
     */
    private Double triglycerides = 12.;
    private String triglyceridesColor = BLACK.getName();
    private String triglyceridesReference = "231";

    /**
     * 高密度蛋白固醇
     */

    private Double highDensityLipoprotein = 12.;
    private String highDensityLipoproteinColor = BLACK.getName();
    private String highDensityLipoproteinReference = "221";

    /**
     * 低密度蛋白固醇
     */

    private Double lowDensityLipoprotein = 13.;
    private String lowDensityLipoproteinColor = BLACK.getName();
    private String lowDensityLipoproteinReference = "211";


    public Map<String, Object> toMap() {
        Map<String, Object> map = new HashMap<>(57);
        map.put("DietaryAnalysis_level", level);
        map.put("DietaryAnalysis_riceAndPhoto", riceAndPhoto);
        map.put("DietaryAnalysis_riceAndPhotoIntake", riceAndPhotoColor.equalsIgnoreCase(BLACK.getName()) ? "正常" : riceAndPhoto + "克/天");
        map.put("DietaryAnalysis_riceAndPhotoColor", riceAndPhotoColor);
        map.put("DietaryAnalysis_riceAndPhotoReference", riceAndPhotoReference);
        map.put("DietaryAnalysis_vegetable", vegetable);
        map.put("DietaryAnalysis_vegetableIntake", vegetableColor.equalsIgnoreCase(BLACK.getName()) ? "正常" : vegetable + "克/天");
        map.put("DietaryAnalysis_vegetableColor", vegetableColor);
        map.put("DietaryAnalysis_vegetableReference", vegetableReference);
        map.put("DietaryAnalysis_fruit", fruit);
        map.put("DietaryAnalysis_fruitIntake", fruitColor.equalsIgnoreCase(BLACK.getName()) ? "正常" : fruit + "克/天");
        map.put("DietaryAnalysis_fruitColor", fruitColor);
        map.put("DietaryAnalysis_fruitReference", fruitReference);
        map.put("DietaryAnalysis_meat", meat);
        map.put("DietaryAnalysis_meatIntake", meatColor.equalsIgnoreCase(BLACK.getName()) ? "正常" : meat + "克/天");
        map.put("DietaryAnalysis_meatColor", meatColor);
        map.put("DietaryAnalysis_meatReference", meatReference);
        map.put("DietaryAnalysis_fish", fish);
        map.put("DietaryAnalysis_fishIntake", fishColor.equalsIgnoreCase(BLACK.getName()) ? "正常" : fish + "克/天");
        map.put("DietaryAnalysis_fishColor", fishColor);
        map.put("DietaryAnalysis_fishReference", fishReference);
        map.put("DietaryAnalysis_egg", egg);
        map.put("DietaryAnalysis_eggIntake", eggColor.equalsIgnoreCase(BLACK.getName()) ? "正常" : egg + "克/天");
        map.put("DietaryAnalysis_eggColor", eggColor);
        map.put("DietaryAnalysis_eggReference", eggReference);
        map.put("DietaryAnalysis_milk", milk);
        map.put("DietaryAnalysis_milkIntake", milkColor.equalsIgnoreCase(BLACK.getName()) ? "正常" : milk + "克/天");
        map.put("DietaryAnalysis_milkColor", milkColor);
        map.put("DietaryAnalysis_milkReference", milkReference);
        map.put("DietaryAnalysis_soybean", soybean);
        map.put("DietaryAnalysis_soybeanIntake", soybeanColor.equalsIgnoreCase(BLACK.getName()) ? "正常" : soybean + "克/天");
        map.put("DietaryAnalysis_soybeanColor", soybeanColor);
        map.put("DietaryAnalysis_soybeanReference", soybeanReference);
        map.put("DietaryAnalysis_cookOil", cookOil);
        map.put("DietaryAnalysis_cookOilColor", cookOilColor);
        map.put("DietaryAnalysis_cookOilReference", cookOilReference);
        map.put("DietaryAnalysis_salt", salt);
        map.put("DietaryAnalysis_saltColor", saltColor);
        map.put("DietaryAnalysis_saltReference", saltReference);
        map.put("DietaryAnalysis_drinkWater", drinkWater);
        map.put("DietaryAnalysis_drinkWaterColor", drinkWaterColor);
        map.put("DietaryAnalysis_drinkWaterReference", drinkWaterReference);
        map.put("DietaryAnalysis_improve", improve);
        map.put("DietaryAnalysis_weight", weight);
        map.put("DietaryAnalysis_bmi", bmi);
        map.put("DietaryAnalysis_bmiColor", bmiColor);
        map.put("DietaryAnalysis_bmiReference", bmiReference);
        map.put("DietaryAnalysis_systolicBloodPressure", systolicBloodPressure);
        map.put("DietaryAnalysis_diastolicBloodPressure", diastolicBloodPressure);
        map.put("DietaryAnalysis_bloodPressureColor", bloodPressureColor);
        map.put("DietaryAnalysis_bloodPressureReference", bloodPressureReference);
        map.put("DietaryAnalysis_fastingPlasmaGlucose", fastingPlasmaGlucose);
        map.put("DietaryAnalysis_fastingPlasmaGlucoseColor", fastingPlasmaGlucoseColor);
        map.put("DietaryAnalysis_fastingPlasmaGlucoseReference", fastingPlasmaGlucoseReference);
        map.put("DietaryAnalysis_totalCholesterol", totalCholesterol);
        map.put("DietaryAnalysis_totalCholesterolColor", totalCholesterolColor);
        map.put("DietaryAnalysis_totalCholesterolReference", totalCholesterolReference);
        map.put("DietaryAnalysis_triglycerides", triglycerides);
        map.put("DietaryAnalysis_triglyceridesColor", triglyceridesColor);
        map.put("DietaryAnalysis_triglyceridesReference", triglyceridesReference);
        map.put("DietaryAnalysis_highDensityLipoprotein", highDensityLipoprotein);
        map.put("DietaryAnalysis_highDensityLipoproteinColor", highDensityLipoproteinColor);
        map.put("DietaryAnalysis_highDensityLipoproteinReference", highDensityLipoproteinReference);
        map.put("DietaryAnalysis_lowDensityLipoprotein", lowDensityLipoprotein);
        map.put("DietaryAnalysis_lowDensityLipoproteinColor", lowDensityLipoproteinColor);
        map.put("DietaryAnalysis_lowDensityLipoproteinReference", lowDensityLipoproteinReference);
        return map;
    }

}
